package it.poste.il.compensatore.service;

import it.poste.il.compensatore.entities.MessageBody;

import java.util.List;

/**
 * Interface of MessageBodyService.
 */
public interface MessageBodyService {

	/**
	 * Method that retrieve the message body by id.
	 * @param id Id to identify the message body.
	 * @return MessageBody The entity Message Body.
	 */
	MessageBody retrieveByID(Long id);
	
	/**
	 * The list of all message body.
	 * @return List The list of Message Body.
	 */
	List<MessageBody> retrieveAll();
	
	/**
	 * Method that save the message body.
	 * @param messageBody Message body to save.
	 * @return MessageBody The Message Body saved.
	 */
	MessageBody save(MessageBody messageBody);

	/**
	 * Update the message body.
	 * @param messageBody Message body to update.
	 * @return void
	 */
	void update(MessageBody messageBody);

	/**
	 * Delete the message body.
	 * @param messageBody Message body to delete.
	 * @return void
	 */
	void delete(MessageBody messageBody);
}
